<template>
  <div>
    <el-form label-width="200px" :inline="true">
      <el-form-item label="时间">
        <el-input v-model="row.time" :rows="1" resize="none" :disabled="true" />
      </el-form-item>
      <!-- 注意v-for遍历对象时，使用的是(value,key) -->
      <el-form-item v-for="(value, key) in formItems" :label="value" :key="key">
        <el-input
          type="number"
          v-model="row[key]"
          :rows="1"
          resize="none"
          :disabled="inputDisabled"
        />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  props: {
    row: {
      type: Object,
      default: () => {}
    },
    // machine: {
    //   type: String
    // }
    inputDisabled: {
      type: Boolean,
      default: false
    }
  },
  data () {
    return {
      formItems: {
        crew_power: '机组总发电量',
        crew_power_1: '#1机发电量',
        crew_running_hour_1: '#1机月运行小时',
        crew_load_1: '#1机日负荷率',
        crew_power_2: '#2机发电量',
        crew_running_hour_2: '#2机月运行小时',
        crew_load_2: '#2机日负荷率',
        light_load: '光伏总发电量',
        light_load_1: '料棚光伏发电量',
        light_load_2: '地面光伏发电量',
        on_grid_energy: '主变',
        own_demand: '厂用电量（kWh）',
        purchased_electricity: '外购电量',
        power_plants_electricity: '发电厂用电量',
        power_plants_electricity_rate: '发电厂用电率',
        power_consumption_rate: '综合厂用电率',
        biomass_consumption: '生物质消耗量',
        moisture_content: '入炉燃料含水率（报表）',
        fuel_calorific_value: '入炉燃料热值（报表）',
        total_evaporation: '总蒸发量',
        crew_evaporation_1: '#1锅炉蒸发量',
        crew_evaporation_load_1: '#1锅炉负荷率',
        crew_evaporation_2: '#2锅炉蒸发量',
        crew_evaporation_load_2: '#2锅炉负荷率',
        power_generation: '发电燃料单耗',
        steam_consumption: '机组单位发电汽耗',
        crew_stream_consumption_1: '#1机组发电汽耗',
        crew_stream_consumption_2: '#2机组发电汽耗',
        low_pressure_steam_supply: '低压供汽量（吨）',
        low_pressure_heating_capacity: '低压供热量（GJ）',
        heat_to_electric_ratio: '热电比',
        demineralized_water_consumption: '除盐水用量',
        water_intake: '取水量',
        fuel_acquisition_volume: '燃料收购量',
        fuel_inventory: '燃料库存量',
        diesel_intake: '柴油进厂量',
        fuel_consumption: '发电燃料耗量',
        heating_fuel_consumption: '供热燃料耗量',
        calcu_heat_fuel_unit: '供热燃料量计算单耗',
        comprehensive_unit_consumption: '综合单耗',
        steam_production_fuel: '每吨燃料产汽量',
        gas_supply_fue: '每吨燃料供气量',
        crew_steam_volume_1: '#1锅炉主蒸汽量',
        crew_steam_volume_2: '#2锅炉主蒸汽量',
        crew_extraction_flow_1: '#1锅炉供热汽包抽汽量',
        crew_extraction_flow_2: '#2锅炉供热汽包抽汽量',
        water_content_analysis: '化验水分',
        laboratory_calorific_value: '化验热值',
        report_total_fuel_water: '报表燃料总水量',
        report_total_calorific_fuel: '报表燃料总热值',
        crusher_power_3: '#3破碎机电量',
        crusher_power_4: '#4破碎机电量',
        aver_evaporation_1: '#1炉平均蒸发量',
        aver_evaporation_2: '#2炉平均蒸发量'
      }
    }
  },
  created () {
    // console.log(this.row)
  }
}
</script>

<style>
</style>
